package com.tengju.bff.interfaces.covercharge.constant;

public enum HeavyKeyEnum {
    PAID_CONFIRM_HEAVY("paid_confirm_heavy","打款确认防重"),
    PAID_CONFIRM_SMS("paid_confirm_sms","打款确认短信发送防重"),
    PAID_CONFIRM_SMS_VALUE("paid_confirm_sms_value","打款确认短信验证码内容"),
    WITHDRAWAL_REQUEST("withdrawal_request","提现支付请求"),
    WITHDRAWAL_QUERY("withdrawal_query","提现支付查询"),
    ALL_WITHDRAWAL_JOB_E("all_withdrawal_job_e","全量提现"),
    WITHDRAWAL_QUERY_JOB_E("withdrawal_query_job_e","提现查询"),
    CHECK_BEST_SIGN_STATUS("checkBestSignStatus","上上签状态查询")
    ;


    private HeavyKeyEnum(String code, String desc){
        this.code=code;
        this.desc=desc;
    }

    private String code;
    private String desc;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return desc;
    }

    public void setDescription(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return this.desc;
    }

    @Override
    public String toString(){ return this.code; }

    public static HeavyKeyEnum getStatusDesc (String code){
        for(HeavyKeyEnum thisEnum : (HeavyKeyEnum.values())){
            if(thisEnum.getCode().equals(code)){//如果传入的code与此枚举code相同，则返回此枚举
                return thisEnum;
            }
        }
        return null;
    }
}
